Optimal. Leaf size=140 \[ \frac {\, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{f}-\frac {\, _2F_1\left (\frac {3}{4},-p;\frac {7}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3302, 1218,
252, 251, 372, 371} \begin {gather*} \frac {\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right )}{f}-\frac {\sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} \, _2F_1\left (\frac {3}{4},-p;\frac {7}{4};-\frac {b \sin ^4(e+f x)}{a}\right )}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 251
Rule 252
Rule 371
Rule 372
Rule 1218
Rule 3302
Rubi steps
\begin {align*} \int \cos ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx &=\frac {\text {Subst}\left (\int \left (1-x^2\right ) \left (a+b x^4\right )^p \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \left (\left (a+b x^4\right )^p-x^2 \left (a+b x^4\right )^p\right ) \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\text {Subst}\left (\int \left (a+b x^4\right )^p \, dx,x,\sin (e+f x)\right )}{f}-\frac {\text {Subst}\left (\int x^2 \left (a+b x^4\right )^p \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int \left (1+\frac {b x^4}{a}\right )^p \, dx,x,\sin (e+f x)\right )}{f}-\frac {\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \text {Subst}\left (\int x^2 \left (1+\frac {b x^4}{a}\right )^p \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{f}-\frac {\, _2F_1\left (\frac {3}{4},-p;\frac {7}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^3(e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 106, normalized size = 0.76 \begin {gather*} -\frac {\sin (e+f x) \left (-3 \, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right )+\, _2F_1\left (\frac {3}{4},-p;\frac {7}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin ^2(e+f x)\right ) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 1.82, size = 0, normalized size = 0.00 \[\int \left (\cos ^{3}\left (f x +e \right )\right ) \left (a +b \left (\sin ^{4}\left (f x +e \right )\right )\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.42, size = 37, normalized size = 0.26 \begin {gather*} {\rm integral}\left ({\left (b \cos \left (f x + e\right )^{4} - 2 \, b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \cos \left (f x + e\right )^{3}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (e+f\,x\right )}^3\,{\left (b\,{\sin \left (e+f\,x\right )}^4+a\right )}^p \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________